//
//  KDUnsignedCell.m
//  WangJingApp
//
//  Created by 魏强 on 17/2/6.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import "KDUnsignedCell.h"
@interface KDUnsignedCell ()
@property (weak, nonatomic) IBOutlet UIButton *selectBtn;
@property (weak, nonatomic) IBOutlet UILabel *unitNameLb;

@end
@implementation KDUnsignedCell

- (void)awakeFromNib {
    // Initialization code
}
#pragma mark - 生命周期区
+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    NSString *cellId =@"KDUnsignedCell";
    KDUnsignedCell *cell =[tableView dequeueReusableCellWithIdentifier:cellId];
    if (cell == nil)
    {
        cell =[[[NSBundle mainBundle]loadNibNamed:cellId owner:self options:nil]lastObject];
    }
    //    cell.contentView.backgroundColor = BackGroundColor;
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}

- (IBAction)selectBtnClick:(UIButton *)sender {
    sender.selected = !sender.selected;
    if (_delegate && [_delegate respondsToSelector:@selector(unsignedCell:selectBtnClick:)]) {
        [_delegate unsignedCell:self selectBtnClick:sender];
    }
    
}

@end
